{layout "@projectLayout.latte"}
{block content}
<div id="block_bg">
	<div id="block_left">
		<h1 class="block projectname">{$project['name']} > Milníky</h1>
		<div class="block">
			<table id="milestones">
				<tr><th>Název</th><th>Začátek</th><th>Deadline</th><th>Úkoly</th><th></th></tr>
			{foreach $milestones as $milestone}
				<tr><td>{$milestone[name]}</td><td class="center">{$milestone[start]|date:"j.n.Y"}</td><td class="center">{$milestone[deadline]|date:"j.n.Y"}</td>
					<td>
					{foreach $milestone->task() as $task}
						<div>{$task[name]}</div>
					{/foreach}
					</td>
					<td><a n:href="editMilestone $milestone[id]">E</a></td>
				</tr>
			{/foreach}
			</table>
		</div>
	</div>
	<div id="block_right">
		{include "rightPanel.latte"}
	</div>
	<div class="clear"></div>
</div>
{/block}
